<body>
    <div class="loginPage">
    <br>
    <br>
    <br>
        <div>
            <div>
                <div class="row">
                    <div class="col-md-5">
                        <h1 class="text-center"><strong>BONC-PaaS</strong></h1>
                    </div>
                </div>
                <br>
                <br>
                <br>
                <div class="row">
                    <div class="col-md-12" ng-show="!forgetPass">
                        <form class="form-horizontal" role="form" name="loginForm">
                            <div class="form-group">
                                <label class="col-md-2 control-label">
                                    账号登陆:
                                </label>
                                <div class="col-md-3">
                                    <input type="email" class="form-control" placeholder="请输入邮箱账号" ng-model="userInfo.identifier" required autofocus/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">
                                    密&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp码:
                                </label>
                                <div class="col-md-3">
                                    <input type="password" class="form-control" placeholder="只能是数字、字母、下划线" ng-model="userInfo.password" ng-minlength="6" ng-maxlength="16" border-red password-check required/>
                                </div>
                            </div>
                            <div class="form-group" ng-if="loginFailedCnt >= 5">
                                <label class="col-md-2 control-label">
                                    验&nbsp&nbsp证&nbsp&nbsp码:
                                </label>
                                <div class="col-md-2">
                                    <input type="text" class="form-control" placeholder="请输入四位验证码" ng-model="userInfo.inputCode">
                                </div>
                                <div >
                                    <input type ="button" class="authCode" ng-click="createCheckCode()" value="{{checkCode}}"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-1 col-md-offset-2">
                                    <input type="checkbox" ng-model="userInfo.autoLogin"><lable>自动登陆</lable>
                                </div>
                                <div class="col-md-offset-3">
                                    <a href="javascript:void(0);" ng-click="forgetPassword()">忘记密码</a>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-3 col-md-offset-2">
                                    <!--ng-disabled="loginForm.$invalid"-->
                                    <button class="btn btn-default btn-lg"  ng-click="login()">登录</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-12" ng-show="forgetPass">
                        <form class="form-horizontal" role="form" name="sendEmailForm">
                            <div class="form-group">
                                <label class="col-md-2 control-label" >
                                    账号:
                                </label>
                                <div class="col-md-3">
                                    <input type="email" class="form-control" placeholder="请输入邮箱账号" ng-model="userInfo.checkEmail" required autofocus/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-3 col-md-offset-2">
                                    <button class="btn btn-default btn-lg" ng-disabled="sendEmailForm.$invalid" ng-click="sendCheckEmail()">发送验证邮件</button>
                                    <span ng-show="sendEmailBoo">邮件发送成功</span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="alert alert-danger alertMsg navbar-fixed-bottom" ng-show="dangerBoo" style="left: 76%;">
                    <p>{{dangerMsg}}</p>
                </div>
                <div class="alert alert-success alertMsg navbar-fixed-bottom" ng-show="successBoo" style="left: 76%;">
                    <p>{{successMsg}}</p>
                </div>
                <div class="alert alert-info alertMsg navbar-fixed-bottom" ng-show="infoBoo" style="left: 76%;">
                    <p>{{infoMsg}}</p>
                </div>
            </div>
        </div>
    </div>
</body>
